package com.xinhe.web.reposity;

import com.xinhe.web.entity.TeaOilCardRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface TeaOilCardRecordRepository extends JpaRepository<TeaOilCardRecord, Long> {
    @Query(value = "select * from tb_tea_oil_card_record where removed=0 and id in ?1", nativeQuery = true)
    List<TeaOilCardRecord> findByIdIn(List<Long> ids);
}
